package com.sanjiayi.result;

import lombok.Data;
import java.io.Serializable;
import java.util.List;

@Data
public class PageResult implements Serializable {
    private Long total;    // 总记录数
    private List<?> rows;  // 当前页结果

    public PageResult() {
    }

    public PageResult(Long total, List<?> rows) {
        this.total = total;
        this.rows = rows;
    }

    public PageResult(Integer total, List<?> rows) {
        this.total = total != null ? total.longValue() : 0L;
        this.rows = rows;
    }
} 